powerpc/lib/sstep: Fix building for powerpcspe
authorJames Clarke <jrtc27@jrtc27.com>
Thu, 7 Dec 2017 20:32:44 +0000 (20:32 +0000)
committerBen Hutchings <ben@decadent.org.uk>
Fri, 15 Mar 2019 02:16:04 +0000 (02:16 +0000)
commit7fe88c4d9fc1be3c5393bd78cd81c000ddb7c273
treebc0a7e24c0d0d83ba669c4ff4127f3247b674aeb
parent4b4b02ef26ff51b77c2a247d8cc29136e46143ab
powerpc/lib/sstep: Fix building for powerpcspe

On powerpcspe, ptesync is not a recognised instruction and so fails to
assemble. We don't expect to have to emulate an lwsync or a ptesync on a
32-bit kernel, so just ifdef them out, and catch any unexpected barrier
types.

Fixes: 3cdfcbfd32b9 ("powerpc: Change analyse_instr so it doesn't modify *regs")
Signed-off-by: James Clarke <jrtc27@jrtc27.com>
Gbp-Pq: Topic bugfix/powerpc
Gbp-Pq: Name powerpc-lib-sstep-fix-building-for-powerpcspe.patch
arch/powerpc/lib/sstep.c